﻿using UnityEngine;

namespace Jinndev.UI {

    /// <summary>
    /// 为UI增加层级改变回调
    /// </summary>
    public interface IChangeLayer {

        GameObject gameObject { get; }

        Transform transform { get; }

        /// <summary>
        /// UI被遮挡时触发
        /// </summary>
        void OnCover();

        /// <summary>
        /// UI重返顶层时触发
        /// </summary>
        void OnTop();

    }

}
